package com.jy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品首页轮播图表
 * </p>
 *
 * @author fzg
 * @since 2024-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class GoodsIndexSwiper implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 轮播图aid
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 轮播图的名字
     */
    private String swiperName;

    /**
     * 轮播图片的URL
     */
    private String swiperUrl;

    /**
     * 商品aid
     */
    private Integer goodsAid;

    /**
     * 轮播图的描述
     */
    private String swiperDesc;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
